package analyzer;

public class SpecialToken {
	/**
	 * Wrapper class which stores most important tokens 
	 * for a main token(s)
	 */
	
	private String mainWords;	// the untokenized pure version
	private TokenElement[] main;	// capital letter coherent tokens
	private TokenElement[] prev;	// previous indicator tokens
	private TokenElement[] next;	// following indicator tokens
	
	public SpecialToken(TokenElement[] main, TokenElement[] prev, TokenElement[] next) {
		super();
		this.main = main;
		this.prev = prev;
		this.next = next;
		// recover pure original version
		mainWords = "";
		for(int i=0; i<main.length; i++) {
			if(i == 0) {
				mainWords= main[i].getWord();
			}
			else {
				mainWords += " "+main[i].getWord();
			}
		}
	}

	public TokenElement[] getMain() {
		return main;
	}

	public TokenElement[] getPrev() {
		return prev;
	}

	public TokenElement[] getNext() {
		return next;
	}
	
	public String getOriginWord() {
		return mainWords;
	}
}
